package com.oren.activity.mapper;

import com.oren.activity.pojo.ActDeployment;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/7/31
 * Time: 14:42
 * describe:
 */
public interface ActDeploymentMapper {

    /**
     * 分页查询
     * @param actDeployment
     * @param rowBounds
     * @return
     */
    List<ActDeployment> pageList(ActDeployment actDeployment, RowBounds rowBounds);

    /**
     * 分页总数
     * @param actDeployment
     * @return
     */
    Integer count(ActDeployment actDeployment);

    /**
     * 新增
     * @param actDeployment
     * @return
     */
    int insertEntity(ActDeployment actDeployment);

    /**
     * 根据depId删除数据
     * @param depId
     * @return
     */
    int deteleById(String depId);

    /**
     * 根据部署id查询数据
     * @param depId
     * @return
     */
    ActDeployment findByPdId(String depId);

    /**
     * 获取所有流程的信息
     * @return
     */
    List<ActDeployment> findAllDeploy();

}
